<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="./phenomenon_files/filelist.xml">
<link rel=Edit-Time-Data href="./phenomenon_files/editdata.mso">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Phenomenon</title>
<!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Author>joohil</o:Author>
  <o:LastAuthor>joohil</o:LastAuthor>
  <o:Revision>42</o:Revision>
  <o:TotalTime>53</o:TotalTime>
  <o:Created>2004-02-05T15:46:00Z</o:Created>
  <o:LastSaved>2004-02-23T19:48:00Z</o:LastSaved>
  <o:Pages>4</o:Pages>
  <o:Words>1926</o:Words>
  <o:Characters>10979</o:Characters>
  <o:Company>Alias</o:Company>
  <o:Lines>91</o:Lines>
  <o:Paragraphs>21</o:Paragraphs>
  <o:CharactersWithSpaces>13482</o:CharactersWithSpaces>
  <o:Version>9.3821</o:Version>
 </o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
  <w:SpellingState>Clean</w:SpellingState>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
p.MSOCOMMENTTEXT
	{mso-style-noshow:yes;}
li.MSOCOMMENTTEXT
	{mso-style-noshow:yes;}
div.MSOCOMMENTTEXT
	{mso-style-noshow:yes;}
span.MSOCOMMENTREFERENCE
	{mso-style-noshow:yes;}
p.MSOCOMMENTSUBJECT
	{mso-style-noshow:yes;}
li.MSOCOMMENTSUBJECT
	{mso-style-noshow:yes;}
div.MSOCOMMENTSUBJECT
	{mso-style-noshow:yes;}
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
h1
	{mso-style-next:Normal;
	margin-top:12.0pt;
	margin-right:0in;
	margin-bottom:3.0pt;
	margin-left:0in;
	mso-pagination:widow-orphan;
	page-break-after:avoid;
	mso-outline-level:1;
	font-size:16.0pt;
	font-family:Arial;
	mso-font-kerning:16.0pt;
	font-weight:bold;}
h2
	{mso-style-next:Normal;
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	page-break-after:avoid;
	mso-outline-level:2;
	font-size:16.0pt;
	font-family:Arial;
	color:#777A7D;
	mso-font-kerning:16.0pt;
	font-weight:bold;}
p.MsoCommentText, li.MsoCommentText, div.MsoCommentText
	{margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
span.MsoCommentReference
	{mso-ansi-font-size:8.0pt;
	mso-bidi-font-size:8.0pt;}
p.MsoBodyText, li.MsoBodyText, div.MsoBodyText
	{margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	mso-bidi-font-size:7.5pt;
	font-family:Arial;
	mso-fareast-font-family:"Times New Roman";
	color:black;}
a:link, span.MsoHyperlink
	{color:#C80000;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:#C80000;
	text-decoration:underline;
	text-underline:single;}
p
	{margin-right:0in;
	mso-margin-top-alt:auto;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
p.msocommentsubject, li.msocommentsubject, div.msocommentsubject
	{mso-style-name:msocommentsubject;
	mso-style-parent:"Comment Text";
	mso-style-next:"Comment Text";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";
	font-weight:bold;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
 /* List Definitions */
@list l0
	{mso-list-id:254680147;
	mso-list-type:hybrid;
	mso-list-template-ids:-1057068718 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Symbol;}
@list l1
	{mso-list-id:1255555837;
	mso-list-type:hybrid;
	mso-list-template-ids:1013511304 67698691 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l1:level1
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:"Courier New";
	mso-bidi-font-family:"Times New Roman";}
@list l1:level2
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:1.0in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:"Courier New";
	mso-bidi-font-family:"Times New Roman";}
@list l2
	{mso-list-id:1395662552;
	mso-list-type:hybrid;
	mso-list-template-ids:65846614 67698691 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l2:level1
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:"Courier New";
	mso-bidi-font-family:"Times New Roman";}
@list l2:level2
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:1.0in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:"Courier New";
	mso-bidi-font-family:"Times New Roman";}
@list l3
	{mso-list-id:1440028268;
	mso-list-type:hybrid;
	mso-list-template-ids:-1268902252 67698691 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l3:level1
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:"Courier New";
	mso-bidi-font-family:"Times New Roman";}
@list l3:level2
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:1.0in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:"Courier New";
	mso-bidi-font-family:"Times New Roman";}
@list l4
	{mso-list-id:1716466428;
	mso-list-type:hybrid;
	mso-list-template-ids:1120824402 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l4:level1
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Symbol;}
@list l5
	{mso-list-id:1860467532;
	mso-list-type:hybrid;
	mso-list-template-ids:-1293262104 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l5:level1
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Symbol;}
@list l5:level2
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:1.0in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:"Courier New";
	mso-bidi-font-family:"Times New Roman";}
@list l6
	{mso-list-id:2117097245;
	mso-list-type:hybrid;
	mso-list-template-ids:1557434128 67698689 67698691 67698689 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l6:level1
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Symbol;}
@list l6:level2
	{mso-level-number-format:bullet;
	mso-level-text:o;
	mso-level-tab-stop:1.0in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:"Courier New";
	mso-bidi-font-family:"Times New Roman";}
@list l6:level3
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:1.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	font-family:Symbol;}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1027"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1"/>
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white lang=EN-US link="#c80000" vlink="#c80000" style='tab-interval:
.5in' alink="#c80000" leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>

<div class=Section1>

<table border=0 cellspacing=0 cellpadding=0 width="100%" style='width:100.0%;
 mso-cellspacing:0in;mso-padding-alt:0in 0in 0in 0in'>
 <tr style='mso-yfti-irow:0'>
  <td style='background:black;padding:0in 0in 0in 0in'>
  <p class=MsoNormal><a href="http://www.alias.com"><span style='text-decoration:
  none;text-underline:none'><img border=0 width=120 height=60 id="_x0000_i1025"
  src=logo.gif alt=AliasLogo></span></a></p>
  </td>
  <td style='background:black;padding:0in 0in 0in 0in'>
  <p class=MsoNormal>&nbsp;</p>
  </td>
 </tr>
 <tr style='mso-yfti-irow:1'>
  <td colspan=2 style='background:#CCCCCC;padding:0in 0in 0in 0in'>
  <p class=MsoNormal><img border=0 width=66 height=2 id="_x0000_i1026"
  src=spacer.gif></p>
  </td>
 </tr>
 <tr style='mso-yfti-irow:2'>
  <td colspan=2 style='background:black;padding:0in 0in 0in 0in'>
  <p class=MsoNormal><img border=0 width=66 height=1 id="_x0000_i1027"
  src=spacer.gif></p>
  </td>
 </tr>
 <tr style='mso-yfti-irow:3;mso-yfti-lastrow:yes'>
  <td colspan=2 style='background:white;padding:0in 0in 0in 0in'>
  <table border=0 cellpadding=0 style='mso-cellspacing:1.5pt;mso-padding-alt:
   30.0pt 30.0pt 30.0pt 30.0pt'>
   <tr style='mso-yfti-irow:0;mso-yfti-lastrow:yes'>
    <td style='padding:30.0pt 30.0pt 30.0pt 30.0pt'>
    <h1><span style='color:#777A7D'>Phenomenon<o:p></o:p></span></h1>
    <p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
    font-family:Arial'>&nbsp;<o:p></o:p></span></p>
    <p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;
    color:black'>This section shows the basic workflow to use phenomenon in
    Maya.</span><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
    font-family:Arial'><br>
    </span><span style='font-size:10.0pt;font-family:Arial;color:black'><span
    style="mso-spacerun: yes">&nbsp;</span>A phenomenon provides a method to
    hide the details of the shading network, and expose the selected few
    controls only. <o:p></o:p></span></p>
    <h1><span style='color:#777A7D'>References: </span><span style='font-size:
    10.0pt;color:#777A7D'><o:p></o:p></span></h1>
    <p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;
    color:black'>mental ray User Manual, Chapter 2.5<o:p></o:p></span></p>
    <p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;
    color:black'>Rendering with mental ray, Chapter 10.<o:p></o:p></span></p>
    <p class=MsoNormal><span style='font-size:10.0pt;font-family:Arial;
    color:black'>&nbsp;<o:p></o:p></span></p>
    <p class=MsoNormal><b><span style='font-size:16.0pt;font-family:Arial;
    color:#777A7D;mso-font-kerning:16.0pt'>Where to find a phenomenon</span></b><span
    style='font-size:10.0pt;font-family:Arial;color:black'><br>
    A phenomenon appear in the H<b>ypershade &gt; Create mental ray Nodes &gt; </b></span><b><span
    style='font-size:10.0pt;mso-bidi-font-size:7.5pt;font-family:Arial;
    color:black'>Miscellaneous</span></b><span style='font-size:10.0pt;
    font-family:Arial;color:black'> <o:p></o:p></span></p>
    <h2>&nbsp;</h2>
    <h2>Step 1. Getting Ready </h2>
    <p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;
    font-family:Arial;color:black'>Make sure the mental ray for Maya plug-in is
    loaded:<o:p></o:p></span></p>
    <ul style='margin-top:0in' type=disc>
     <li class=MsoNormal style='color:black;mso-list:l0 level1 lfo3;tab-stops:
         list .5in'><b><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;
         font-family:Arial'>Windows &gt; Settings/Preferences &gt; Plug-in
         Manager...</span></b><span style='font-size:10.0pt;mso-bidi-font-size:
         7.5pt;font-family:Arial'> <o:p></o:p></span></li>
     <li class=MsoNormal style='color:black;mso-list:l0 level1 lfo3;tab-stops:
         list .5in'><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;
         font-family:Arial'>Find <b>Mayatomr</b> and check <b>loaded</b> <o:p></o:p></span></li>
    </ul>
    <p class=MsoNormal><b><span style='font-size:10.0pt;mso-bidi-font-size:
    7.5pt;font-family:Arial;color:black'>&nbsp;<o:p></o:p></span></b></p>
    <p class=MsoNormal><b><span style='font-size:10.0pt;mso-bidi-font-size:
    7.5pt;font-family:Arial;color:black'>Open phenomenon_start.ma</span></b><span
    style='font-size:10.0pt;mso-bidi-font-size:7.5pt;font-family:Arial;
    color:black'>.<o:p></o:p></span></p>
    <p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;
    font-family:Arial;color:black'>This is a template scene that is used for
    this section.<br>
    This file uses mib_illum_ward, mib_texture_rotate, mib_texture_vector,
    mib_texture_turbulence to build an anisotropic shading. <o:p></o:p></span></p>
    <p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;
    font-family:Arial;color:black'>We hide the details of the shading network
    using a phenomenon node, and expose a few parameters only, so that the
    phenomenon node acts like a new anisotropic shader node. <o:p></o:p></span></p>
    <p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;
    font-family:Arial;color:black'>To get the desirable anisotropic look, the
    shading network requires the first derivatives of the u texture space. <o:p></o:p></span></p>
    <p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;
    font-family:Arial;color:black'>The example will also demonstrate how to
    handle it with phenomenon. <o:p></o:p></span></p>
    <h2>&nbsp;</h2>
    <h2>Step 2. Building a phenomenon </h2>
    <ul style='margin-top:0in' type=disc>
     <li class=MsoNormal style='color:black;mso-list:l6 level1 lfo6;tab-stops:
         list .5in'><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;
         font-family:Arial'><a
         href="mel://createNode%20-name%20anisotropic_mtl%20mentalrayPhenomenon;">Create
         a phenomenon node, and name it anisotropic_mtl</a><o:p></o:p></span></li>
     <ul style='margin-top:0in' type=circle>
      <li class=MsoNormal style='color:black;mso-list:l6 level2 lfo6;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>From the Hypershade &gt; Create mental ray
          Nodes &gt; Miscellaneous &gt; mentalrayPhenomenon. <br
          style='mso-special-character:line-break'>
          <![if !supportLineBreakNewLine]><br style='mso-special-character:
          line-break'>
          <![endif]><o:p></o:p></span></li>
     </ul>
     <li class=MsoNormal style='color:black;mso-list:l6 level1 lfo6;tab-stops:
         list .5in'><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;
         font-family:Arial'>Create the phenomenon root.<o:p></o:p></span></li>
     <ul style='margin-top:0in' type=circle>
      <li class=MsoNormal style='color:black;mso-list:l6 level2 lfo6;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>Set mtl (mib_illum_ward node) as the root of
          the phenomenon. <br>
          <a href="mel://connectWindowWith%20mtl%20anisotropic_mtl;/">MMB Drag
          and drop mtl to mtl anisotropic_mtl</a>, and select <b>others</b>. <o:p></o:p></span></li>
      <li class=MsoNormal style='color:black;mso-list:l6 level2 lfo6;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>From the Connection Editor, <a
          href="mel://connectAttr%20-f%20mtl.message%20anisotropic_mtl.root%5B0%5D;deleteUI%20connectWindow;">connect
          mib_illum_ward1.message to anisotropic_mtl.Root</a>.<o:p></o:p></span></li>
      <li class=MsoNormal style='color:black;mso-list:l6 level2 lfo6;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>Root is now expandable. Click the + icon
          next to <b>Root</b>, and you can see that root[0] is connected. <o:p></o:p></span></li>
      <li class=MsoNormal style='color:black;mso-list:l6 level2 lfo6;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>Open the attribute editor of the <a
          href="mel://showEditor%20anisotropic_mtl;">phenomenon node</a>. The <b>Roots</b>
          section lists mtl as its root. <br style='mso-special-character:line-break'>
          <![if !supportLineBreakNewLine]><br style='mso-special-character:
          line-break'>
          <![endif]><o:p></o:p></span></li>
     </ul>
     <li class=MsoNormal style='color:black;mso-list:l6 level1 lfo6;tab-stops:
         list .5in'><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;
         font-family:Arial'>Creating phenomenon interface<o:p></o:p></span></li>
     <ul style='margin-top:0in' type=circle>
      <li class=MsoNormal style='color:black;mso-list:l6 level2 lfo6;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>Let's make mtl.diffuse accessible through
          the phenomenon node.<o:p></o:p></span></li>
      <ul style='margin-top:0in' type=disc>
       <li class=MsoNormal style='color:black;mso-list:l6 level3 lfo6;
           tab-stops:list 1.5in'><span style='font-size:10.0pt;mso-bidi-font-size:
           7.5pt;font-family:Arial'><a
           href="mel://connectWindowWith%20anisotropic_mtl%20mtl;/">MMG Drag
           and drop mtl anisotropic_mtl onto mtl</a>. <o:p></o:p></span></li>
       <li class=MsoNormal style='color:black;mso-list:l6 level3 lfo6;
           tab-stops:list 1.5in'><span style='font-size:10.0pt;mso-bidi-font-size:
           7.5pt;font-family:Arial'><a
           href="mel://connectAttr%20-f%20anisotropic_mtl.interface%5B0%5D%20mtl.diffuse;%0D%0A%09deleteUI%20connectWindow;">Select</a>
           <b>Interface</b> from the outputs panel of the anisotropic_mtl
           phenomenon node, <b>Diffuse</b> from the Inputs panel of the mtl
           node. <o:p></o:p></span></li>
       <li class=MsoNormal style='color:black;mso-list:l6 level3 lfo6;
           tab-stops:list 1.5in'><span style='font-size:10.0pt;mso-bidi-font-size:
           7.5pt;font-family:Arial'>The Connection Editor shows that
           phenomenon's interface[0] is connected to mtl.diffuse. <o:p></o:p></span></li>
       <li class=MsoNormal style='color:black;mso-list:l6 level3 lfo6;
           tab-stops:list 1.5in'><span style='font-size:10.0pt;mso-bidi-font-size:
           7.5pt;font-family:Arial'>It is also visible from the <a
           href="mel://showEditor%20anisotropic_mtl;">attribute editor of the
           phenomenon node</a>. <o:p></o:p></span></li>
      </ul>
      <li class=MsoNormal style='color:black;mso-list:l6 level2 lfo6;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>Keep adding those attribute that you wish to
          be exposed to the interface. For example,<o:p></o:p></span></li>
      <ul style='margin-top:0in' type=disc>
       <li class=MsoNormal style='color:black;mso-list:l6 level3 lfo6;
           tab-stops:list 1.5in'><span style='font-size:10.0pt;mso-bidi-font-size:
           7.5pt;font-family:Arial'><a
           href="mel://connectAttr%20-f%20anisotropic_mtl.interface%5B1%5D%20mtl.ambient;">mtl.ambient</a>
           <o:p></o:p></span></li>
       <li class=MsoNormal style='color:black;mso-list:l6 level3 lfo6;
           tab-stops:list 1.5in'><span style='font-size:10.0pt;mso-bidi-font-size:
           7.5pt;font-family:Arial'><a
           href="mel://connectAttr%20-f%20anisotropic_mtl.interface%5B2%5D%20mtl.shiny_u;">mtl.shiny_u</a>
           <o:p></o:p></span></li>
       <li class=MsoNormal style='color:black;mso-list:l6 level3 lfo6;
           tab-stops:list 1.5in'><span style='font-size:10.0pt;mso-bidi-font-size:
           7.5pt;font-family:Arial'><a
           href="mel://connectAttr%20-f%20anisotropic_mtl.interface%5B3%5D%20mtl.shiny_v;">mtl.shiny_v</a>
           <o:p></o:p></span></li>
       <li class=MsoNormal style='color:black;mso-list:l6 level3 lfo6;
           tab-stops:list 1.5in'><span style='font-size:10.0pt;mso-bidi-font-size:
           7.5pt;font-family:Arial'><a
           href="mel://connectAttr%20-f%20anisotropic_mtl.interface%5B4%5D%20tex.spacing;">tex.spacing</a>
           <o:p></o:p></span></li>
       <li class=MsoNormal style='color:black;mso-list:l6 level3 lfo6;
           tab-stops:list 1.5in'><span style='font-size:10.0pt;mso-bidi-font-size:
           7.5pt;font-family:Arial'><a
           href="mel://connectAttr%20-f%20anisotropic_mtl.interface%5B5%5D%20tex.strength;">tex.strength</a>
           <o:p></o:p></span></li>
       <li class=MsoNormal style='color:black;mso-list:l6 level3 lfo6;
           tab-stops:list 1.5in'><span style='font-size:10.0pt;mso-bidi-font-size:
           7.5pt;font-family:Arial'><a
           href="mel://connectAttr%20-f%20anisotropic_mtl.interface%5B6%5D%20tex.power;">tex.power</a>
           <o:p></o:p></span></li>
       <li class=MsoNormal style='color:black;mso-list:l6 level3 lfo6;
           tab-stops:list 1.5in'><span style='font-size:10.0pt;mso-bidi-font-size:
           7.5pt;font-family:Arial'><a
           href="mel://connectAttr%20-f%20anisotropic_mtl.interface%5B7%5D%20tex.iteration;">tex.iteration</a>
           <o:p></o:p></span></li>
      </ul>
      <li class=MsoNormal style='color:black;mso-list:l6 level2 lfo6;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>Light array needs special care.<br>
          If you want to simply use all the lights in the scene, set mtl.mode
          to 2 (exclusive), and do not expose it through the interface. <br>
          If you want the phenomenon node to work with Maya light linking, the
          other option is to expose the lights array as an interface. <br>
          The light array, however, is not connected to the interface through
          UI. <br>
          Type the following MEL command in the Script Editor. <br>
          <a
          href="mel://connectAttr%20-f%20anisotropic_mtl.interface%5B8%5D%20%20mtl.lights%5B0%5D;">connectAttr
          -f anisotropic_mtl.interface[8] mtl.lights[0] </a><o:p></o:p></span></li>
     </ul>
    </ul>
    <p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;
    font-family:Arial;color:black'>&nbsp;<o:p></o:p></span></p>
    <ul style='margin-top:0in' type=disc>
     <li class=MsoNormal style='color:black;mso-list:l6 level1 lfo6;tab-stops:
         list .5in'><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;
         font-family:Arial'>Phenomenon option<o:p></o:p></span></li>
     <ul style='margin-top:0in' type=circle>
      <li class=MsoNormal style='color:black;mso-list:l6 level2 lfo6;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>The <a
          href="mel://showEditor%20anisotropic_mtl;">Attribute Editor of the
          phenomenon node</a> has <b>Options</b> block. <o:p></o:p></span></li>
      <li class=MsoNormal style='color:black;mso-list:l6 level2 lfo6;
          tab-stops:list 1.0in'><b><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>version</span></b><span style='font-size:
          10.0pt;mso-bidi-font-size:7.5pt;font-family:Arial'> specifies the
          version number of the phenomenon.<o:p></o:p></span></li>
      <li class=MsoNormal style='color:black;mso-list:l6 level2 lfo6;
          tab-stops:list 1.0in'><b><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>Apply Flags</span></b><span
          style='font-size:10.0pt;mso-bidi-font-size:7.5pt;font-family:Arial'>
          tells the kind of shader the phenomenon should be considered as.
          Let's select <a
          href="mel://setAttr%20anisotropic_mtl.applyMaterial%201;/">Material</a>
          for this node, because we are building an anisotropic shader. <o:p></o:p></span></li>
      <li class=MsoNormal style='color:black;mso-list:l6 level2 lfo6;
          tab-stops:list 1.0in'><b><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>Requirements</span></b><span
          style='font-size:10.0pt;mso-bidi-font-size:7.5pt;font-family:Arial'>
          let us specify special information this phenomenon will need. We need
          the first u derivative in order to uderiv (mib_texture_vector)
          function correctly. <a
          href="mel://setAttr%20anisotropic_mtl.reqDerivative%201;">Set
          Derivatives 1</a>. <br>
          Note that uderiv.select is set to &#8211;5, meaning the first derivative of
          u vectors.<o:p></o:p></span></li>
     </ul>
    </ul>
    <p><b><span style='font-size:16.0pt;font-family:Arial;color:#777A7D;
    mso-font-kerning:16.0pt'>Step 3. Exporting the phenomenon <br>
    </span></b><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;
    font-family:Arial;color:black'>Now that the phenomenon node is properly
    constructed, we are ready to export it to a .mi file. <br>
    The file will contain the phenomenon declaration. When the file is loaded
    to Maya, the phenomenon node anisotropic_mtl will be recognized as a shader
    node, not any different from other mental ray shader nodes. <o:p></o:p></span></p>
    <ul style='margin-top:0in' type=disc>
     <li class=MsoNormal style='color:black;mso-list:l4 level1 lfo10;
         tab-stops:list .5in'><span style='font-size:10.0pt;mso-bidi-font-size:
         7.5pt;font-family:Arial'><a href="mel://select%20anisotropic_mtl;">Select
         anisotropic_mtl</a> <o:p></o:p></span></li>
     <li class=MsoNormal style='color:black;mso-list:l4 level1 lfo10;
         tab-stops:list .5in'><span style='font-size:10.0pt;mso-bidi-font-size:
         7.5pt;font-family:Arial'>Bring up the <a href="mel://ExportOptions;">export
         option box</a> from Menu &gt; File &gt; Export All... option box. <o:p></o:p></span></li>
     <li class=MsoNormal style='color:black;mso-list:l4 level1 lfo10;
         tab-stops:list .5in'><span style='font-size:10.0pt;mso-bidi-font-size:
         7.5pt;font-family:Arial'>Set <b>File Type</b> to <b>mentalRay</b>. <o:p></o:p></span></li>
     <li class=MsoNormal style='color:black;mso-list:l4 level1 lfo10;
         tab-stops:list .5in'><span style='font-size:10.0pt;mso-bidi-font-size:
         7.5pt;font-family:Arial'>Set <b>File Format</b> <b>ASCII</b>. <o:p></o:p></span></li>
     <li class=MsoNormal style='color:black;mso-list:l4 level1 lfo10;
         tab-stops:list .5in'><span style='font-size:10.0pt;mso-bidi-font-size:
         7.5pt;font-family:Arial'>Check on <b>Export Selected Items Only</b>. <o:p></o:p></span></li>
     <li class=MsoNormal style='color:black;mso-list:l4 level1 lfo10;
         tab-stops:list .5in'><span style='font-size:10.0pt;mso-bidi-font-size:
         7.5pt;font-family:Arial'>From the <b>Predefine Export Filters</b>,
         choose <b>Factory Shaders, Phenomenizers</b>. <o:p></o:p></span></li>
     <li class=MsoNormal style='color:black;mso-list:l4 level1 lfo10;
         tab-stops:list .5in'><span style='font-size:10.0pt;mso-bidi-font-size:
         7.5pt;font-family:Arial'>Finally, click <b>Export All</b> button, and
         specify the file name. <br style='mso-special-character:line-break'>
         <![if !supportLineBreakNewLine]><br style='mso-special-character:line-break'>
         <![endif]><o:p></o:p></span></li>
    </ul>
    <p class=MsoBodyText>Compare the exported file to aniso_phen.mi. <br>
    aniso_phen_mode2.mi is a slightly different version with mtl.mode set to 2.
    </p>
    <p><b><span style='font-size:16.0pt;font-family:Arial;color:#777A7D;
    mso-font-kerning:16.0pt'>Step 4. Edit the phenomenon declaration <br>
    </span></b><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;
    font-family:Arial;color:black'>The phenomenon declaration file just created
    is almost ready to be used in Maya. <o:p></o:p></span></p>
    <ul style='margin-top:0in' type=disc>
     <li class=MsoNormal style='color:black;mso-list:l5 level1 lfo13;
         tab-stops:list .5in'><span style='font-size:10.0pt;mso-bidi-font-size:
         7.5pt;font-family:Arial'>Assign a node id<br>
         A node id must be assigned to the new phenomenon node. Otherwise, any
         Maya scene files using this phenomenon node will not be read correctly
         if saved as a binary file. If the node does not have a node id, mental
         ray for Maya will assign a temporary id, which is not guaranteed to be
         the same all the time. So the scene must be saved in ASCII format
         only, or a unique node id should be assigned. <br style='mso-special-character:
         line-break'>
         <![if !supportLineBreakNewLine]><br style='mso-special-character:line-break'>
         <![endif]><o:p></o:p></span></li>
     <li class=MsoNormal style='color:black;mso-list:l5 level1 lfo13;
         tab-stops:list .5in'><verbatim><span style='font-size:10.0pt;
         mso-bidi-font-size:7.5pt;font-family:Arial'>The following is the
         syntax for assigning a node id to a shader.<br style='mso-special-character:
         line-break'>
         <![if !supportLineBreakNewLine]><br style='mso-special-character:line-break'>
         <![endif]><o:p></o:p></span></li>
    </ul>
    <table border=0 cellspacing=0 cellpadding=0 style='margin-left:1.0in;
     border-collapse:collapse;border:none;mso-border-alt:solid windowtext .5pt;
     mso-padding-alt:0in 5.4pt 0in 5.4pt'>
     <tr style='height:74.4pt'>
      <td width=393 valign=top style='width:295.05pt;border:solid windowtext .5pt;
      padding:0in 5.4pt 0in 5.4pt;height:74.4pt'>
      <p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;
      font-family:Arial;color:black'><verbatim>declare ... <br>
      ... <br>
      #: <br>
      #: nodeid 55555 <br>
      # This is the node ID for binary Maya files. <br>
      #: end declare<o:p></o:p></span></p>
      </td>
     </tr>
    </table>
    <p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;
    font-family:Arial;color:black'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>
    <ul style='margin-top:0in' type=disc>
     <ul style='margin-top:0in' type=circle>
      <li class=MsoNormal style='color:black;mso-list:l5 level2 lfo13;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>See <a
          href="..\writingShaders\nodefactory.html">nodefactory.html</a> for
          more details. <o:p></o:p></span></li>
     </ul>
     <li class=MsoNormal style='color:black;mso-list:l5 level1 lfo13;
         tab-stops:list .5in'><span style='font-size:10.0pt;mso-bidi-font-size:
         7.5pt;font-family:Arial'>The derivative statement at the end of the
         file is followed by &quot;space 0&quot;. Remove &quot;space 0&quot;. <o:p></o:p></span></li>
     <li class=MsoNormal style='color:black;mso-list:l5 level1 lfo13;
         tab-stops:list .5in'><span style='font-size:10.0pt;mso-bidi-font-size:
         7.5pt;font-family:Arial'>See aniso_phen_finish.mi for the final
         result. <o:p></o:p></span></li>
    </ul>
    <p><b><span style='font-size:16.0pt;font-family:Arial;color:#777A7D;
    mso-font-kerning:16.0pt'>&nbsp;<o:p></o:p></span></b></p>
    <p><b><span style='font-size:16.0pt;font-family:Arial;color:#777A7D;
    mso-font-kerning:16.0pt'>Step 5. Loading the phenomenon node </span></b><span
    style='font-size:10.0pt;mso-bidi-font-size:7.5pt;font-family:Arial;
    color:black'><br>
    To use the phenomenon node we've just created, the phenomenon declaration
    must be loaded. <br>
    There are two ways to load the phenomenon declaration: <o:p></o:p></span></p>
    <p class=MsoBodyText style='margin-left:.5in;text-indent:-.25in;mso-list:
    l3 level1 lfo15;tab-stops:list .5in'><![if !supportLists]><span
    style='font-family:"Courier New";mso-bidi-font-family:"Times New Roman"'>o<span
    style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </span></span><![endif]>Using Shader Manager</p>
    <ul style='margin-top:0in' type=circle>
     <ul style='margin-top:0in' type=circle>
      <li class=MsoNormal style='color:black;mso-list:l3 level2 lfo15;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>Bring up the <b>Shader Manager</b> from Menu
          &gt; Window &gt; Rendering Editors &gt; mental ray &gt; Shader
          Manager. <br>
          The Shader Manager lists .mi files in MI_CUSTOM_SHADER_PATH. The
          default value for MI_CUSTOM_SHADER_PATH is <Maya install directory>/mentalray/include.
          It can be modified from Maya.env. <br>
          If the phenomenon declaration file is not in the
          MI_CUSTOM_SHADER_PATH, click the Browse button, and locate the file. <o:p></o:p></span></li>
     </ul>
     <li class=MsoNormal style='color:black;mso-list:l3 level1 lfo15;
         tab-stops:list .5in'><span style='font-size:10.0pt;mso-bidi-font-size:
         7.5pt;font-family:Arial'>Restart Maya<o:p></o:p></span></li>
     <ul style='margin-top:0in' type=circle>
      <li class=MsoNormal style='color:black;mso-list:l3 level2 lfo15;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>Another option is to put the .mi file in
          MI_CUSTOM_SHADER_PATH, and restart Maya. mental ray for Maya loads
          all the shader and phenomenon declaration found in
          MI_CUSTOM_SHADER_PATH on start up. <br>
          You must restart Maya for this to work. <o:p></o:p></span></li>
      <li class=MsoNormal style='color:black;mso-list:l3 level2 lfo15;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>If you chose this option, edit the
          maya.rayrc file before restarting Maya. It is not required to load the
          phenomenon node, but is a necessary step to be able to render a scene
          with the node. <br>
          See step 7. <br style='mso-special-character:line-break'>
          <![if !supportLineBreakNewLine]><br style='mso-special-character:
          line-break'>
          <![endif]><o:p></o:p></span></li>
     </ul>
    </ul>
    <p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;
    font-family:Arial;color:black'>To see whether the phenomenon is correctly
    loaded, open the Hypershade &gt; Create mental ray nodes. <br>
    anisotropic_mtl should show up in Materials section. <br>
    Depending on the <b>Apply Flags</b> specified in Step 2, Phenomenon option,
    the new node appears in corresponding section. <br>
    If for some reason the new node does not show up in the Hypershade, check
    the Script Editor and output window for any error messages. <o:p></o:p></span></p>
    <p><b><span style='font-size:16.0pt;font-family:Arial;color:#777A7D;
    mso-font-kerning:16.0pt'>Step 6. Using the phenomenon node </span></b><span
    style='font-size:10.0pt;mso-bidi-font-size:7.5pt;font-family:Arial;
    color:black'><br>
    Open Phenomenon_start2.ma <br>
    This is the same scene as the one we started with, except that it does not
    have the shading network. We will use the new phenomenon node on the
    sphere. <o:p></o:p></span></p>
    <ul style='margin-top:0in' type=circle>
     <li class=MsoNormal style='color:black;mso-list:l1 level1 lfo19;
         tab-stops:list .5in'><span style='font-size:10.0pt;mso-bidi-font-size:
         7.5pt;font-family:Arial'><a
         href="mel://createNode%20anisotropic_mtl;%20%0D%0Asets%20-renderable%20true%20-noSurfaceShader%20true%20-empty%20-name%20anisotropic_mtl1SG;%0D%0AconnectAttr%20anisotropic_mtl1.message%20anisotropic_mtl1SG.miMaterialShader;/">Create
         anisotropic_mtl</a> <br>
         anisotropic_mtl1 looks like a normal material shader in the <a
         href="mel://showEditor%20anisotropic_mtl1;">Attribute Editor</a>. <br>
         The interfaces we added in step 2 appear as parameters of the node. <br>
         The workflow of other mental ray material shader applies the same to
         this phenomenon node as well. <o:p></o:p></span></li>
     <li class=MsoNormal style='color:black;mso-list:l1 level1 lfo19;
         tab-stops:list .5in'><span style='font-size:10.0pt;mso-bidi-font-size:
         7.5pt;font-family:Arial'><a
         href="mel://select%20nurbsSphere1;%20assignShadingGroup%20anisotropic_mtl1SG/">Assign
         the phenomenon node to the sphere</a>. <o:p></o:p></span></li>
     <li class=MsoNormal style='color:black;mso-list:l1 level1 lfo19;
         tab-stops:list .5in'><span style='font-size:10.0pt;mso-bidi-font-size:
         7.5pt;font-family:Arial'>Set the parameter values<o:p></o:p></span></li>
     <ul style='margin-top:0in' type=circle>
      <li class=MsoNormal style='color:black;mso-list:l1 level2 lfo19;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'><a
          href="mel://setAttr%20anisotropic_mtl1.ambient%200.073%200.062%200.124;">ambient</a>
          <o:p></o:p></span></li>
      <li class=MsoNormal style='color:black;mso-list:l1 level2 lfo19;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'><a
          href="mel://setAttr%20anisotropic_mtl1.diffuse%200.7%200.7%201;">diffuse</a>
          <o:p></o:p></span></li>
      <li class=MsoNormal style='color:black;mso-list:l1 level2 lfo19;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'><a
          href="mel://setAttr%20anisotropic_mtl1.shiny_u%201;">shiny_u</a> <o:p></o:p></span></li>
      <li class=MsoNormal style='color:black;mso-list:l1 level2 lfo19;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'><a
          href="mel://setAttr%20anisotropic_mtl1.shiny_v%203;">shiny_v</a> <o:p></o:p></span></li>
      <li class=MsoNormal style='color:black;mso-list:l1 level2 lfo19;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'><a
          href="mel://setAttr%20anisotropic_mtl1.spacing%200.8;">spacing</a> <o:p></o:p></span></li>
      <li class=MsoNormal style='color:black;mso-list:l1 level2 lfo19;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'><a
          href="mel://setAttr%20anisotropic_mtl1.strength%205;">strength</a> <o:p></o:p></span></li>
      <li class=MsoNormal style='color:black;mso-list:l1 level2 lfo19;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'><a
          href="mel://setAttr%20anisotropic_mtl1.power%203;">power</a> <o:p></o:p></span></li>
      <li class=MsoNormal style='color:black;mso-list:l1 level2 lfo19;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'><a
          href="mel://setAttr%20anisotropic_mtl1.iteration%202;">iteration</a> <o:p></o:p></span></li>
     </ul>
    </ul>
    <p><b><span style='font-size:16.0pt;font-family:Arial;color:#777A7D;
    mso-font-kerning:16.0pt'>Step 7. Rendering with the phenomenon node <br>
    </span></b><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;
    font-family:Arial;color:black'><a
    href="mel://setCurrentRenderer%20mentalRay%20;%20renderWindowRender%20redoPreviousRender%20renderView;">Render</a>
    with mental ray. <o:p></o:p></span></p>
    <p><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;font-family:Arial;
    color:black'>You will see the following error in the script editor:<o:p></o:p></span></p>
    <p><b style='mso-bidi-font-weight:normal'><span style='font-size:10.0pt;
    mso-bidi-font-size:7.5pt;font-family:Arial;color:black'>// Error:
    (Mayatomr) : mental ray has stopped with errors, see the log // <br>
    // Info (Mayatomr): Aborted // <o:p></o:p></span></b></p>
    <p><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;font-family:Arial;
    color:black'>The output window shows more information about what went
    wrong. <o:p></o:p></span></p>
    <p><b style='mso-bidi-font-weight:normal'><span style='font-size:10.0pt;
    mso-bidi-font-size:7.5pt;font-family:Arial;color:black'>API 0.0 error
    301031: call to undeclared function &quot;anisotropic_mtl&quot;<br>
    API 0.0 error 301032: while defining material
    &quot;anisotropic_mtl1SG&quot;: undefined shader
    &quot;anisotropic_mtl1&quot; <o:p></o:p></span></b></p>
    <p><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;font-family:Arial;
    color:black'>Even though the phenomenon node is loaded (in step 5) and
    recognized by the mental ray for Maya, the actual rendering engine does not
    know this node yet. <br style='mso-special-character:line-break'>
    <![if !supportLineBreakNewLine]><br style='mso-special-character:line-break'>
    <![endif]><o:p></o:p></span></p>
    <p><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;font-family:Arial;
    color:black'>Do one of the following: <o:p></o:p></span></p>
    <ul style='margin-top:0in' type=circle>
     <li class=MsoNormal style='color:black;mso-list:l2 level1 lfo22;
         tab-stops:list .5in'><span style='font-size:10.0pt;mso-bidi-font-size:
         7.5pt;font-family:Arial'>Quit Maya<o:p></o:p></span></li>
     <ul style='margin-top:0in' type=circle>
      <li class=MsoNormal style='color:black;mso-list:l2 level2 lfo22;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>Quit Maya, and edit the maya.rayrc file.
          maya.rayrc contains the shader libraries (DSO files) and shader
          declarations (.mi files) that the mental ray needs to know to render.
          <br>
          This file is located at <maya install directory>/mentalray/maya.rayrc
          <o:p></o:p></span></li>
      <li class=MsoNormal style='color:black;mso-list:l2 level2 lfo22;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>For example, maya.rayc can be edited like
          the followings: <br style='mso-special-character:line-break'>
          <![if !supportLineBreakNewLine]><br style='mso-special-character:
          line-break'>
          <![endif]><o:p></o:p></span></li>
     </ul>
    </ul>
    <table border=0 cellspacing=0 cellpadding=0 style='margin-left:1.0in;
     border-collapse:collapse;border:none;mso-border-alt:solid windowtext .5pt;
     mso-padding-alt:0in 5.4pt 0in 5.4pt'>
     <tr style='height:289.15pt'>
      <td width=442 valign=top style='width:331.7pt;border:solid windowtext .5pt;
      padding:0in 5.4pt 0in 5.4pt;height:289.15pt'>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'>. . . <o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'>registry
      &quot;{MRMAYA_START}&quot;<o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'><span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>link <span
      style='mso-tab-count:1'> </span>&quot;{MAYABASE}/lib/base.{DSO}&quot;<o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'><span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>link<span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&quot;{MAYABASE}/lib/physics.{DSO}&quot;<o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'><span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>link<span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&quot;{MAYABASE}/lib/mayabase.{DSO}&quot;<o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'><span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>link<span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&quot;{MAYABASE}/lib/contour.{DSO}&quot;<o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'><span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>mi<span
      style="mso-spacerun: yes">&nbsp;
      </span>&quot;{MAYABASE}/include/aniso_phen_finish.mi&quot;<o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'><span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>mi <span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&quot;{MAYABASE}/include/mayabase.mi&quot;<o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'><span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>mi <span
      style='mso-tab-count:1'>&nbsp;&nbsp; </span>&quot;{MAYABASE}/include/base.mi&quot;<o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'><span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>mi <span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&quot;{MAYABASE}/include/physics.mi&quot;<o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'><span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>mi <span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&quot;{MAYABASE}/include/contour.mi&quot;<o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'><span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>echo<span
      style='mso-tab-count:1'>&nbsp; </span>&quot;mental ray for Maya - startup
      done&quot;<o:p></o:p></span></p>
      <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>end
      registry<o:p></o:p></span></p>
      <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>.
      . .</span><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;
      font-family:Arial;color:black'><o:p></o:p></span></p>
      </td>
      <td width=442 valign=top style='width:331.7pt;border:solid windowtext .5pt;
      border-left:none;mso-border-left-alt:solid windowtext .5pt;padding:0in 5.4pt 0in 5.4pt;
      height:289.15pt'>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'>. . .<o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'>registry
      &quot;{MRMAYA_START}&quot;<o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'><span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>link <span
      style='mso-tab-count:1'> </span>&quot;{MAYABASE}/lib/base.{DSO}&quot;<o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'><span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>link<span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&quot;{MAYABASE}/lib/physics.{DSO}&quot;<o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'><span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>link<span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&quot;{MAYABASE}/lib/mayabase.{DSO}&quot;<o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'><span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>link<span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&quot;{MAYABASE}/lib/contour.{DSO}&quot;<o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'><span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>mi <span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&quot;{MAYABASE}/include/mayabase.mi&quot;<o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'><span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>mi <span
      style='mso-tab-count:1'>&nbsp;&nbsp; </span>&quot;{MAYABASE}/include/base.mi&quot;<o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'><span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>mi <span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&quot;{MAYABASE}/include/physics.mi&quot;<o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'><span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>mi <span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&quot;{MAYABASE}/include/contour.mi&quot;<o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'><span
      style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>echo<span
      style='mso-tab-count:1'>&nbsp; </span>&quot;mental ray for Maya - startup
      done&quot;<o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'>end registry<o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>
      <p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><span
      style='font-size:10.0pt;font-family:"Courier New"'>$lookup
      &quot;{MRMAYA_START}&quot;<o:p></o:p></span></p>
      <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>$include
      &quot;{MAYABASE}/include/aniso_phen_finish.mi&quot;<o:p></o:p></span></p>
      <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>.
      . .</span><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;
      font-family:Arial;color:black'><o:p></o:p></span></p>
      </td>
     </tr>
    </table>
    <p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;
    font-family:Arial;color:black'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p>
    <ul style='margin-top:0in' type=circle>
     <ul style='margin-top:0in' type=circle>
      <li class=MsoNormal style='color:black;mso-list:l2 level2 lfo22;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>Restart Maya. <br>
          If you chose to restart Maya, you may want to combine step 5 here -
          place the .mi file in MI_CUSTOM_SHADER_PATH or edit Maya.env to add a
          new path to MI_CUSTOM_SHADER_PATH. <o:p></o:p></span></li>
     </ul>
     <li class=MsoNormal style='color:black;mso-list:l2 level1 lfo22;
         tab-stops:list .5in'><span style='font-size:10.0pt;mso-bidi-font-size:
         7.5pt;font-family:Arial'>Using Mayatomr &#8211;addIncludes<o:p></o:p></span></li>
     <ul style='margin-top:0in' type=circle>
      <li class=MsoNormal style='color:black;mso-list:l2 level2 lfo22;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>It is possible to add a new .mi file
          interactively instead of restarting maya. But this has a restriction.
          <o:p></o:p></span></li>
      <li class=MsoNormal style='color:black;mso-list:l2 level2 lfo22;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>Type the following in the script editor:<br>
          Mayatomr -addIncludes &quot;<full path to the mi file>&quot; <o:p></o:p></span></li>
      <li class=MsoNormal style='color:black;mso-list:l2 level2 lfo22;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>This command works only if mental ray is
          properly initialized, after an image is rendered for example. <o:p></o:p></span></li>
      <li class=MsoNormal style='color:black;mso-list:l2 level2 lfo22;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>If you see an error at this command, disconnect
          the phenomenon from the shading engine. Mental ray should able to
          render now, and initialized. <o:p></o:p></span></li>
      <li class=MsoNormal style='color:black;mso-list:l2 level2 lfo22;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>Try the MEL command above one more time. <o:p></o:p></span></li>
     </ul>
     <li class=MsoNormal style='color:black;mso-list:l2 level1 lfo22;
         tab-stops:list .5in'><span style='font-size:10.0pt;mso-bidi-font-size:
         7.5pt;font-family:Arial'>Using Mayatomr &#8211;updateRayrc<o:p></o:p></span></li>
     <ul style='margin-top:0in' type=circle>
      <li class=MsoNormal style='color:black;mso-list:l2 level2 lfo22;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>Similar to &quot;Mayatomr
          -addIncludes&quot;, this command reloads the maya.rayrc file interactively.
          The same limitation applies, so it should be used after mental ray is
          initialized. <o:p></o:p></span></li>
      <li class=MsoNormal style='color:black;mso-list:l2 level2 lfo22;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>Open <maya install directory>/mentalray/maya.rayrc,
          and add <br>
          mi &quot;<full path to the mi file>&lt;full path to the mi
          file&gt;&quot; </br><br>
          as described above.<o:p></o:p></span></li>
      <li class=MsoNormal style='color:black;mso-list:l2 level2 lfo22;
          tab-stops:list 1.0in'><span style='font-size:10.0pt;mso-bidi-font-size:
          7.5pt;font-family:Arial'>Type the following in the script editor. <br>
          Mayatomr -updateRayrc <o:p></o:p></span></li>
     </ul>
    </ul>
    <p><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;font-family:Arial;
    color:black'>Now <a
    href="mel://setCurrentRenderer%20mentalRay%20;%20renderWindowRender%20redoPreviousRender%20renderView;">Render</a>
    again. <o:p></o:p></span></p>
    <table border=0 cellpadding=0 style='mso-cellspacing:1.5pt;mso-padding-alt:
     0in 0in 0in 0in'>
     <tr style='mso-yfti-irow:0'>
      <td style='padding:.75pt .75pt .75pt .75pt'>
      <p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
      font-family:Arial'><img border=0 width=320 height=240 id="_x0000_i1028"
      src="images/phenomenon_finish.gif"><o:p></o:p></span></p>
      </td>
     </tr>
     <tr style='mso-yfti-irow:1;mso-yfti-lastrow:yes'>
      <td style='padding:.75pt .75pt .75pt .75pt'>
      <p class=MsoNormal align=center style='text-align:center'><span
      style='font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>phenomenon_finish<o:p></o:p></span></p>
      </td>
     </tr>
    </table>
    <p><span style='font-size:10.0pt;mso-bidi-font-size:7.5pt;font-family:Arial;
    color:black'><o:p></o:p></span></p>
    </td>
   </tr>
  </table>
  <p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
  font-family:Arial'><o:p></o:p></span></p>
  </td>
 </tr>
</table>

<p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-font-size:12.0pt;
font-family:Arial'>&nbsp;<o:p></o:p></span></p>

</div>

</body>

</html>
